star pattern question in python